/*已用且一切正常*/
// 获取账号是否注册     POST (phone)=>(is_phone_exist)
export const api_phone_exist = 'https://alanhill.top:8090/login/phone'
// 绑定信息        POST (phone,code,password)=>(is_code)
export const api_bind_phone = 'https://alanhill.top:8090/login/bind'
// 获取登录信息       POST (phone,password)=>(is_phone,is_password)
export const api_login = 'https://alanhill.top:8090/login'
// 发送更新密码后数据  POST (phone,newPwd,code)=>(is_replace_success)
export const api_replace_password = 'https://alanhill.top:8090/login/password'
// 获取所有医院信息   POST(lat,lng)=>(hospital_id,picture,name,location,city)
export const api_get_hospitals = 'https://alanhill.top:8090/hospital/all'
// 获取所有科室信息   GET(bigKind,department)
export const api_get_department = 'https://alanhill.top:8090/allKind'
// 获取所有可挂号医生信息   POST (hospitalId,department)=>(doctor_id,doctor_name,name_level,introduction,status,picture)  //最好排序
export const api_get_doctors_online = 'https://alanhill.top:8090/hospitalDoctor'
// 获取某医生详细信息   POST (doctor_id)=>(doctor_name,department,hospital_name,name_level,order_fee,order_count,picture,statis_rate)
export const api_get_doctor_things = 'https://alanhill.top:8090/doctor/doctorHospitalInfor'
// 获取某医生预约时间段 POST(doctor_id)=>(doctor_id,data[yyyy-mm-dd HH],week[星期四上午],status,fee,address,hour)
export const api_get_doctor_times = 'https://alanhill.top:8090/doctorTime'
// 获取科室对应医生信息 POST(department)=>(doctor_id,name[医生姓名],name_level,status[是否能预约],picture[头像],order_count,satis_rate,introduction)
export const api_get_department_doctors = 'https://alanhill.top:8090/doctor/doctorDepartmentInfor'
// 获取用户就诊信息   POST (phone)=>(patient_name,id_number,sex)
export const api_get_userThings = 'https://alanhill.top:8090/patient/Infor'
//  获取订单信息has_pay==0   POST (phone,has_pay)=>(order_id,hospital_name,department,doctor_name,doctor_img_url,start_time_date,start_time_hour,start_time_ampm,end_time,order_fee,has_pay,lat,lng)
export const api_get_order = 'https://alanhill.top:8090/order/hasPay'
// 添加订单 POST (phone,doctor_id,date,hour,fee)=>(order_id,hospital_name,department)  //order_id==-1:病人在同一时间段已有订单；order==0：插入失败；order==其他，插入成功
export const api_place_order = 'https://alanhill.top:8090/orderInsert'
//根据省和市返回医院信息    POST(province,city)=>(hospital_id,picture,name,location)
export const api_get_hospitals_by_location = 'https://alanhill.top:8090/cityHospital'
//根据医院id，查询医院大小科室内容  POST(hospital_id)=>(bigKind,smallKind)
export const api_get_department_by_hospital='https://alanhill.top:8090/hospitalBigSmallKind'
// 输入电话号码，发送验证码 POST(phone,flag)=>(is_OK)
export const api_sms='https://alanhill.top:8090/sms'
//根据订单号和修改后状态，修改订单状态，返回是否修改成功   POST(order_id,has_pay)=>(is_alter)
export const api_updateOrderStatus = 'https://alanhill.top:8090/order/hasPay_alter'
//根据输入字符查询医院和医生    POST(city,input)=>(hospital_number,hospitalCutInforList:[hospital_id,pitcture,name,location],doctor_number,doctorHospitalInforList:[doctor_name,department,hospital_name,name_level,order_fee,order_count,picture,statis_rate])
export const api_get_doctors_hospitals_by_input = 'https://alanhill.top:8090/hospitalAndDoctorByInput'

/*待用*/
// 更新身份信息 POST (phone,patient_name,id_card,case_history)=>(is_identity_ok)
export const api_identity = 'https://alanhill.top:8090/patient/InforUpdate'


/*暂时废弃*/
// 获取首页轮播图片   GET (picture_url)
export const api_get_banners = 'https://alanhill.top:8090/picture'
//输入经纬度，返回所在市    POST(lat,lng)=>(province,city)
export const api_t1='https://alanhill.top:8090/cityLocation'
//获取省和市的信息  GET(province,city)
export const api_get_citys= 'https://alanhill.top:8090/provinceCity'

/*已用，但需要修改*/


/*待做*/


//根据订单号查询订单是否超时    POST(order_id)=>(is_out_time)
export const api_checkOrderTime = 'http://39.106.116.133:8090/order/outOfTime'

